<tpl var layoutBody={ />
<div data-identity="wxmp:base" data-table="wxmp_base">
	<div class="layui-breadcrumb">
		<a href="/manage/index.jspx">首页</a>
		<a href="/manage/wxmp/base/index.jspx">公众号</a>
		<a href="javascript:;"> <cite>添加</cite></a>
	</div>
	<hr>
	<fieldset class="layui-elem-field">
		<legend>添加 公众号</legend>
		<div class="layui-field-box">
			<form class="layui-form" action="save.json?oper=create" lay-filter="mWxmpBaseForm">
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="name">
					<label class="layui-form-label">公众号名称：</label>
					<div class="layui-input-block">
						<input type="text" name="name" placeholder="请输入公众号名称" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="appid">
					<label class="layui-form-label">APPID：</label>
					<div class="layui-input-block">
						<input type="text" name="appid" placeholder="请输入APPID" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="secret">
					<label class="layui-form-label">APP_SECRET：</label>
					<div class="layui-input-block">
						<input type="text" name="secret" placeholder="请输入APP_SECRET" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="token">
					<label class="layui-form-label">TOKEN：</label>
					<div class="layui-input-block">
						<input type="text" name="token" placeholder="请输入TOKEN" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="aeskey">
					<label class="layui-form-label">AES_KEY：</label>
					<div class="layui-input-block">
						<input type="text" name="aeskey" placeholder="请输入AES_KEY" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<a class="layui-btn layui-btn-primary" href="javascript:history.go(-1)">返回</a>
						<button class="layui-btn" lay-submit lay-filter="mWxmpBaseForm">立即提交</button>
					</div>
				</div>
			</form>
		</div>
	</fieldset>
</div>
<tpl }; />

<tpl var layoutScript={ />
<script type="text/javascript">
	layui.config({
		base: '${webCdn}/plugins/layui/modules/'
	}).extend({
		http: 'http/http.min',
		message: 'message/message.min'
	}).use(['element', 'message', 'form', 'http'], function () {
		// 绑定表单提交事件
		layui.form.on('submit(mWxmpBaseForm)', function (data) {
			layui.http.post('save.json?oper=create', data.field, function (res) {
				layui.message.success(res.message, () => history.back());
			});

			return false;
		});
	});
</script>
<tpl }; />
<tpl include( "../../tpl/layout-scroll.html" ,{identity:"wxmp:base",layoutBody:layoutBody,layoutScript:layoutScript}){} />